package com.dp.util.upload;

public class FileBase {

	private String sourceName;
	private String name;
	private String type;
	private String ext;
	private String fileId;
	private long size;
	private String format;
	private String distributorid;
	
	public FileBase(String sname,String name,String type,String ext)
	{
		this.sourceName=sname;
		this.name=name;
		this.type=type;
		this.ext=ext;
	}
	public FileBase(String sname,String name,String type,String ext,long size)
	{
		this.sourceName=sname;
		this.name=name;
		this.type=type;
		this.ext=ext;
		this.size=size;
	}
	public FileBase(String sname,String name,String type,String ext,long size,String format)
	{
		this.sourceName=sname;
		this.name=name;
		this.type=type;
		this.ext=ext;
		this.size=size;
		this.format=format;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSourceName() {
		return sourceName;
	}
	public void setSourceName(String sourceName) {
		this.sourceName = sourceName;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getExt() {
		return ext;
	}
	public void setExt(String ext) {
		this.ext = ext;
	}

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	
	public long getSize() {
		return size;
	}
	public void setSize(long size) {
		this.size = size;
	}
	public String getFormat() {
		return format==null?format:format.toLowerCase();
	}
	public void setFormat(String format) {
		this.format = format;
	}
	public String getDistributorid() {
		return distributorid;
	}
	public void setDistributorid(String distributorid) {
		this.distributorid = distributorid;
	}
	
}
